package cn.zjgsu.utils;

import java.util.Map;

import javax.servlet.http.HttpServletRequest;

import org.springframework.web.servlet.view.freemarker.FreeMarkerView;

public class MyFreeMarkerView extends FreeMarkerView {
	private static final String CONTEXT_PATH="contextPath";
	protected void exposeHelpers(Map<String, Object> model,
            HttpServletRequest request) throws Exception {
    model.put(CONTEXT_PATH, request.getContextPath());
    super.exposeHelpers(model, request);
	}
}
